#!/bin/bash

CURDIR=$(dirname 0)
BINDIR=$CURDIR/bin
LIBDIR=$BINDIR/lib

export PATH=$PATH:$BINDIR
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR

if [ -f main.dcb ]; then
	rm main.dcb
fi

bgdc main.prg
if [ -f main.dcb ]; then
	bgdi main
fi
